import request from '@/utils/request'

// 查询交付部列表
export function listDeliverydept(query) {
  return request({
    url: '/system/deliverydept/list',
    method: 'get',
    params: query
  })
}

// 查询交付部详细
export function getDeliverydept(id) {
  return request({
    url: '/system/deliverydept/' + id,
    method: 'get'
  })
}

// 新增交付部
export function addDeliverydept(data) {
  return request({
    url: '/system/deliverydept',
    method: 'post',
    data: data
  })
}

// 修改交付部
export function updateDeliverydept(data) {
  return request({
    url: '/system/deliverydept',
    method: 'put',
    data: data
  })
}

// 删除交付部
export function delDeliverydept(id) {
  return request({
    url: '/system/deliverydept/' + id,
    method: 'delete'
  })
}
